Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Document workaround for could not find index pattern problem #18027

Merged
merged 3 commits into from
May 7, 2020

Conversation

dedemorton
Copy link
Contributor

This problem seems to creep up frequently enough that I keep having to re-learn how to fix it. I think it's worth adding a troubleshooting topic in case this happens again.

Related discuss issue:
https://discuss.elastic.co/t/custom-index-name-for-auditbeat/229968/3

@dedemorton dedemorton added docs needs_backport PR is waiting to be backported to other branches. v7.7.0 labels Apr 27, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 27, 2020
@dedemorton dedemorton added the Team:Integrations Label for the Integrations team label Apr 27, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@dedemorton dedemorton removed the needs_team Indicates that the issue/PR needs a Team:* label label Apr 27, 2020
@dedemorton dedemorton self-assigned this Apr 27, 2020
@dedemorton dedemorton requested a review from kaiyan-sheng April 27, 2020 20:32
Copy link
Contributor

@kaiyan-sheng kaiyan-sheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also mention rerurn ./metricbeat setup or refresh kibana index pattern before creating a new index?

@dedemorton dedemorton requested a review from kaiyan-sheng May 1, 2020 02:57
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 1, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview stats

Expand to view the summary

Build stats

Test stats 🧪

Test Results
Failed 9
Passed 7732
Skipped 1236
Total 8977

Test errors

Expand to view the tests failures

  • Name: Build and Test / Filebeat Mac OS X / test_symlink_rotated – test_harvester.Test

    • Status: FAILED
    • Age: 1
    • Duration: 3.218
    • Error Details: expected to see 2 entries, got '[{'source': '/private/var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/filebeat/build/system-tests/run/test_harvester.Test.test_symlink_rotated/log/symlink.log', 'offset': 13, 'timestamp': '2020-05-05T17:30:00.808032-07:00', 'ttl': -1, 'type': 'log', 'meta': None, 'FileStateOS': {'inode': 786767011, 'device': 16777217}}]'
  • Name: Build and Test / Filebeat Mac OS X / test_clean_removed_with_clean_inactive – test_registrar.Test

    • Status: FAILED
    • Age: 1
    • Duration: 1.817
    • Error Details:
      -------------------- >> begin captured stdout << ---------------------
      registry size: 2
      registry size after remove: 2

--------------------- >> end captured stdout << ----------------------

  • Name: Build and Test / Filebeat Mac OS X / test_registrar_files_with_input_level_processors – test_registrar.Test

    • Status: FAILED
    • Age: 1
    • Duration: 3.851
    • Error Details: Mismatched values: 'offset', expected: 60, actual: 48
  • Name: Build and Test / Filebeat Mac OS X / test_rotating_file_with_restart – test_registrar.Test

    • Status: FAILED
    • Age: 1
    • Duration: 7.036
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_6_3_0 – test_registrar_upgrade.Test

    • Status: FAILED
    • Age: 1
    • Duration: 2.164
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_6_3_1 – test_registrar_upgrade.Test

    • Status: FAILED
    • Age: 1
    • Duration: 1.996
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_faulty_6_3_1 – test_registrar_upgrade.Test

    • Status: FAILED
    • Age: 1
    • Duration: 2
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_latest – test_registrar_upgrade.Test

    • Status: FAILED
    • Age: 1
    • Duration: 2.389
    • Error Details:
  • Name: Build and Test / Filebeat Mac OS X / test_upgrade_from_single_file_to_folder_hierarchy – test_registrar_upgrade.Test

    • Status: FAILED
    • Age: 1
    • Duration: 2.304
    • Error Details:

Steps errors

Expand to view the steps failures

  • Name: Mage build unitTest
    • Description: mage build unitTest

    • Result: FAILURE

    • Duration: 19 min 48 sec<

    • Start Time: 2020-05-06T00:17:15.628+0000

Log output

Expand to view the last 100 lines of log output

[2020-05-06T01:43:37.276Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-05-06T01:43:37.276Z] + FILE=metricbeat/build/coverage/full.cov
[2020-05-06T01:43:37.276Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-05-06T01:43:37.276Z] + FILE=packetbeat/build/coverage/full.cov
[2020-05-06T01:43:37.276Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-05-06T01:43:37.276Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-05-06T01:43:37.276Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-05-06T01:43:37.276Z] + FILE=journalbeat/build/coverage/full.cov
[2020-05-06T01:43:37.276Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-05-06T01:43:38.470Z] Failed in branch Auditbeat x-pack
[2020-05-06T01:43:38.575Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats
[2020-05-06T01:43:38.883Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-05-06T01:43:38.898Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Lint
[2020-05-06T01:43:38.958Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-05-06T01:43:39.022Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-05-06T01:43:39.082Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-05-06T01:43:39.143Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Winlogbeat-oss
[2020-05-06T01:43:39.207Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-05-06T01:43:39.291Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-05-06T01:43:39.356Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Dockerlogbeat
[2020-05-06T01:43:39.423Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Journalbeat-oss
[2020-05-06T01:43:39.487Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-05-06T01:43:39.555Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-05-06T01:43:39.629Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Heartbeat-oss
[2020-05-06T01:43:39.691Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-05-06T01:43:39.759Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Auditbeat-Linux
[2020-05-06T01:43:39.819Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Libbeat-x-pack
[2020-05-06T01:43:39.880Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Filebeat-Windows
[2020-05-06T01:43:39.941Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Packetbeat-oss
[2020-05-06T01:43:40.001Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-05-06T01:43:40.061Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-05-06T01:43:40.125Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-Windows
[2020-05-06T01:43:40.186Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-05-06T01:43:40.245Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Filebeat-x-pack
[2020-05-06T01:43:40.306Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-05-06T01:43:40.374Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-05-06T01:43:40.442Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Auditbeat-Mac-OS-X
[2020-05-06T01:43:40.514Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-05-06T01:43:40.575Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-05-06T01:43:40.641Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Filebeat-oss
[2020-05-06T01:43:40.699Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Heartbeat-Windows
[2020-05-06T01:43:40.765Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Libbeat-oss
[2020-05-06T01:43:40.825Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Auditbeat-Windows
[2020-05-06T01:43:40.884Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Functionbeat-Windows
[2020-05-06T01:43:40.944Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-05-06T01:43:41.004Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-05-06T01:43:41.065Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Libbeat-crosscompile
[2020-05-06T01:43:41.136Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Libbeat-stress-tests
[2020-05-06T01:43:41.194Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-05-06T01:43:41.253Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-05-06T01:43:41.319Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-05-06T01:43:41.387Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-05-06T01:43:41.733Z] + cat
[2020-05-06T01:43:41.733Z] + /usr/local/bin/runbld ./runbld-script
[2020-05-06T01:43:41.733Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-05-06T01:43:48.351Z] runbld>>> runbld started
[2020-05-06T01:43:48.351Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-05-06T01:43:49.741Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18027' in order of occurrence in the config (last value wins).
[2020-05-06T01:43:51.153Z] runbld>>> Debug logging enabled.
[2020-05-06T01:43:51.153Z] runbld>>> Storing result
[2020-05-06T01:43:51.153Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-05-06T01:43:51.153Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200506014350-0D376C53
[2020-05-06T01:43:51.153Z] runbld>>> Adding system facts.
[2020-05-06T01:43:52.098Z] runbld>>> Adding vcs info for the latest commit:  564a26f6b8ec5d7766eb4d9b251408d4d4e66ac3
[2020-05-06T01:43:52.358Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-05-06T01:43:52.358Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-05-06T01:43:52.358Z] Processing JUnit reports with runbld...
[2020-05-06T01:43:52.358Z] + echo 'Processing JUnit reports with runbld...'
[2020-05-06T01:43:52.619Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-05-06T01:43:52.619Z] runbld>>> DURATION: 10ms
[2020-05-06T01:43:52.619Z] runbld>>> STDOUT: 40 bytes
[2020-05-06T01:43:52.619Z] runbld>>> STDERR: 49 bytes
[2020-05-06T01:43:52.619Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-05-06T01:43:52.619Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats
[2020-05-06T01:43:54.005Z] runbld>>> Storing build metadata: 
[2020-05-06T01:43:54.006Z] runbld>>> Adding test report.
[2020-05-06T01:43:54.006Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats
[2020-05-06T01:43:55.389Z] runbld>>> Found 102 test output files
[2020-05-06T01:43:55.650Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-05-06T01:43:55.650Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-05-06T01:43:55.651Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-05-06T01:43:55.912Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-05-06T01:43:55.912Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-05-06T01:43:55.912Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-cloudfoundry.xml
[2020-05-06T01:43:56.484Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-05-06T01:43:56.745Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-05-06T01:43:57.007Z] runbld>>> Test output logs contained: Errors: 0 Failures: 9 Tests: 8827 Skipped: 1020
[2020-05-06T01:43:57.267Z] runbld>>> Storing result
[2020-05-06T01:43:57.267Z] runbld>>> FAILURES: 9
[2020-05-06T01:43:59.175Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-05-06T01:43:59.175Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200506014350-0D376C53
[2020-05-06T01:43:59.175Z] runbld>>> Email notification disabled by environment variable.
[2020-05-06T01:43:59.175Z] runbld>>> Slack notification disabled by environment variable.
[2020-05-06T01:44:04.694Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18027
[2020-05-06T01:44:04.803Z] [INFO] getVaultSecret: Getting secrets
[2020-05-06T01:44:04.863Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-06T01:44:05.614Z] + chmod 755 generate-build-data.sh
[2020-05-06T01:44:05.614Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18027/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18027/runs/5 FAILURE 7373373
[2020-05-06T01:44:06.165Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18027/runs/5/steps/?limit=10000 -o steps-info.json
[2020-05-06T01:44:06.716Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18027/runs/5/tests/?status=FAILED -o tests-errors.json

@dedemorton dedemorton requested a review from jsoriano May 5, 2020 23:40
@dedemorton
Copy link
Contributor Author

Can you take another look? Thanks!

Copy link
Contributor

@kaiyan-sheng kaiyan-sheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Team:Integrations Label for the Integrations team v7.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants